#ifndef MEMBERPROFILE_H
#define MEMBERPROFILE_H

#include <QWidget>
#include "personmember.h"

class InquireSql;
class ModifyMembercardPassword;
class ModifyMemberInformation;
class ModifyMemberOver;

namespace Ui {
class MemberProfile;
}

class MemberProfile : public QWidget
{
    Q_OBJECT
    
public:
    explicit MemberProfile(QWidget *parent = 0);
    ~MemberProfile();
    void displayMemberProfile(const QString &);
    const QString get_autoAddMemberCardNumber();

//signals:
//     void updateMemberProfile();

private slots:
    void on_lineEditCommodity_textChanged(const QString &arg1);

    void on_pushButtonModifyPassword_clicked();

    void on_pushButtonModifyInformation_clicked();

    void slotUpdateMemberProfile();

    void on_pushButtonDelete_clicked();

    void slot_updateMemberProfile();

    void on_pushButtonModifyMemberOver_clicked();    

private:
    void setTableWidgetHeaderStyle();
    void setTableWidgetColor();
    Ui::MemberProfile *ui;
    InquireSql *m_sql;
    memberList m_currentTableWidgetList;
    ModifyMembercardPassword *m_modifyMembercardPassword;
    ModifyMemberInformation *m_modifyMemberInformation;
    ModifyMemberOver *m_modifyMemberOver;
};

#endif // MEMBERPROFILE_H
